<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Realizar Transferência</title>
	<h:outputStylesheet name="style.css" library="css"></h:outputStylesheet>
</h:head>
<h:body>
	<h:form id="Transferencia">
		<h:messages errorClass="mensagemErro" infoClass="mensagemInfo"
			warnClass="mensagemErro" globalOnly="true"
			text="#{transferenciaBean.mensagem}"></h:messages>
		<fieldset class="formulario">
			<legend class="tituloFormulario">Realizar Transferencia</legend>
			<h:panelGrid columns="2">
				<h:panelGroup>
				Banco:
				<h:inputText size="10"
						value="#{transferenciaBean.liberacao2.banco.codigo}"
						id="codigoBanco" required="true"
						requiredMessage="Preencha o Número"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="codigoBanco"
						errorClass="mensagemErro"></h:message>
				Agencia:
				<h:inputText size="10"
						value="#{transferenciaBean.liberacao2.agencia.numero}"
						id="numeroAgencia" required="true"
						requiredMessage="Preencha o Número"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="numeroAgencia"
						errorClass="mensagemErro"></h:message>
				Conta:
					<h:inputText size="10"
						value="#{transferenciaBean.liberacao2.conta.numero}"
						id="numeroConta" required="true"
						requiredMessage="Preencha o Número"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="numeroConta"
						errorClass="mensagemErro"></h:message>
				Digito Verificador:
				<h:inputText size="10"
						value="#{transferenciaBean.liberacao2.conta.digitoVerificador}"
						id="digitoConta" required="true"
						requiredMessage="Preencha o Digito"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="digitoConta"
						errorClass="mensagemErro"></h:message>
				
				Valor:
				<h:inputText size="10" value="#{transferenciaBean.liberacao2.valor}"
						id="valor" required="true" requiredMessage="Preencha o Vlor"></h:inputText>
				&nbsp;&nbsp;&nbsp;<h:message for="valor" errorClass="mensagemErro"></h:message>
				</h:panelGroup>
				<f:facet name="footer">
					<h:panelGroup style="text-align:right" layout="block">
						<h:commandButton value="Realizar" style="text-align:right"
							actionListener="#{transferenciaBean.RealizarTransferencia}"></h:commandButton>
					</h:panelGroup>
				</f:facet>
			</h:panelGrid>			
		</fieldset>
	</h:form>
</h:body>
</html>